/*
 * Copyright (C) 2009 Umin (umin90@gmail.com)
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
 * for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.,
 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 */
#ifndef main_h
#define main_h

#include "libnge2.h"
//#include "config.h"
#include "ctrl.h"
#include "gui.h"
//#include "function.h"
//#include "player.h"
//#include "play.h"
//#include "system.h"

#define DEBUG
	#ifdef DEBUG
	//#define DEBUG_LOOP
	#endif

//#define ERROR
	#ifdef ERROR
		#define u_error error
		#define u_log debug
	#else
		#define u_error nge_error
		#define u_log nge_log
	#endif


#ifdef ERORR
#include "error.h"
#endif


enum PERIOD_OF_TIME {
    TIME_MORNNING,
    TIME_FORENOON,
    TIME_NOON,
    TIME_AFTERNOON,
    TIME_EVENING,
    TIME_NIGHT,
    TIME_MIDNIGHT
};

enum FEELING {
    FEELING_HAPPY,
    FEELING_SORROW,
    FEELING_EXCITING,
    FEELING_QUITE
};



struct top_list {
    char *title;
    char *artist;
    char *album;
    char *genre;

    char *path;
    
    enum FEELING feeling;
    enum PERIOD_OF_TIME time;
};
//list of music library

struct in_list {
    int32_t track;
    int32_t channels;
    int32_t samplerate;
    int32_t currentTime;
    int32_t lengthTime;
    unsigned trackNumber;
    char *comment;
    image_p cover;
    char *lrc;
    char *year;

};


#endif
